package com.njtoyo.taxi.admin.service.business.operation_rule;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.njtoyo.taxi.admin.rest.presenter.business.operation_rule.DriverServiceArrangementPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.business.operation_rule.DesignatedChargeWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.business.operation_rule.DriverServiceArrangementAddUpdateWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.business.operation_rule.DriverServiceArrangementWrapper;
import com.taxi.entity.common.RestResult;
import com.njtoyo.taxi.entity.backend.AdminUser;

public interface DriverServiceArrangementService {
    RestResult<IPage<DriverServiceArrangementPresenter>> page(AdminUser adminUser, DriverServiceArrangementWrapper wrapper);
    
    RestResult<DriverServiceArrangementPresenter> detail(AdminUser adminUser, Long id);
    
    RestResult deleteCache();


    RestResult getPageByCategory(AdminUser adminUser, DriverServiceArrangementWrapper wrapper);

    RestResult add(DriverServiceArrangementAddUpdateWrapper wrapper);

    RestResult updateDesigantedRuleIsOpen(DesignatedChargeWrapper wrapper);

    RestResult deleteById(Long id);

    RestResult update(DriverServiceArrangementAddUpdateWrapper wrapper);
}
